﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;

namespace KinectFundamentals.GestureRecognizer {
    public class DataStreamsDictionary {
        private Dictionary<JointEnum, List<Entry>> Entries = new Dictionary<JointEnum, List<Entry>>();

        public DataStreamsDictionary() {
            Entries.Add(JointEnum.HandLeft, new List<Entry>());
            Entries.Add(JointEnum.HandRight, new List<Entry>());
        }

        public void Add(JointEnum jointStream, float x, float y, float z) {
            var newVector3 = new Vector3(x, y, z);
            Entries[jointStream].Add(new Entry() {Position = newVector3, Time = DateTime.Now});
        }
        
        public List<Entry> GetEntriesList(JointEnum jointStream) {
            return Entries[jointStream];
        } 

    }
}
